package com.jic.market.entity.coupon;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 优惠券配置表
 * @author : seven
 * @email : 774329481@qq.com
 * @since : 2020-03-15 08:18:04
 * @version : v1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CouponConfig implements Serializable {
    private static final long serialVersionUID = 1L;

    //主键ID
    private Long id;
    //优惠券id
    private String promotionId;
    //使用范围 1:平台券 2:店铺券
    private Integer couponPlatform;
    //优惠券种类 0电子券 1实体券
    private Integer couponType;
    //id领取总数限制
    private Long idLimitNum;
    //id每日领取数量限制
    private Long idLimitDayNum;
    //发券类型 0前台领券,1指定用户发放,2注册自动发放,3抽奖券
    private Integer amountDeductType;
    //优惠方式,0金额券,1折扣券
    private Integer couponMode;
    //优惠券面值单位元
    private BigDecimal couponAmount;
    //优惠券发放总数
    private Long grantTotalNum;
    //使用说明
    private String couponUseDesc;
    //使用开始时间
    private Date couponUseStartTime;
    //使用结束时间
    private Date couponUseEndTime;
    //订单总金额限制单位元
    private BigDecimal useTotalAmountLimit;
    //发放次数限制
    private String triggerNum;
    //创建人
    private long creator;
    //修改人
    private long updator;
    //是否删除 0否，1是
    private Boolean deleteFlag;
    //创建时间
    private Date createTime;
    //更新时间
    private Date updateTime;
    //折扣数
    private String discountNum;
    //折扣金额上线单位元
    private BigDecimal discountLimit;
    //是否可叠加使用 0否 1是
    private String overlayFlag;
    //平台Id
    private String roleDeptId;
    //商家Id
    private String roleMerchantId;
    //店铺Id
    private String roleStoreId;
    //创建人姓名
    private String creatorName;
    //更新人姓名
    private String updatorName;
    //已领取
    private Long receiveNum;
    //已使用
    private Long useNum;
    //已发放
    private Long grantNum;
    //优惠券搜索词
    private String searchKeyword;
    //活动费用预算:面值*发行数量
    private Long budget;
    //预警比例
    private String warningNum;
    //优惠券简称
    private String abbreviationName;
}